<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<link rel="stylesheet" type="text/css" href="../template/css.css" media="all" />
<title>QueroTeto</title>

</h:head>
<h:body>
	<div id="corpo">
		<ui:include src="/template/topo.xhtml"/>
		<ui:include src="/template/menu.xhtml" />
		<div id="conteudo">
			<p:messages id="messages" showDetail="true" autoUpdate="true"
				closable="true" globalOnly="true" />
			<div id="centro">

				<h:form id="form">
					
					<p:panel header="Editar Cadastro">
						<p:graphicImage id="imagem" value="/img/inquilino/perfil/#{perfilBean.perfil.email}.jpg" width="100px" height="130px" />
						<h:messages />
						<h:panelGrid columns="2" cellpadding="5">
							

							<h:outputText value="Seu curso: " />
							<h:inputText value="#{perfilBean.perfil.curso}" />

							<h:outputText value="Instituição de ensino: " />
							<h:inputText value="#{perfilBean.perfil.instituicao}" />
					
							<h:outputText value="Foto: " />
							<p:fileUpload update="imagem" id="upload" fileUploadListener="#{uploadBean.fileUploadAction}" />	
						
							<h:outputText value="Possue moradia? " />
							<p:selectOneRadio id="temMoradia"
								value="#{perfilBean.perfil.temMoradia}">
								<f:selectItem itemLabel="Sim" itemValue="true" />
								<f:selectItem itemLabel="Não" itemValue="false" />
							</p:selectOneRadio>

							<h:outputText value="Você bebe? " />
							<p:selectOneRadio id="bebe" value="#{perfilBean.perfil.bebe}">
								<f:selectItem itemLabel="Sim" itemValue="true" />
								<f:selectItem itemLabel="Não" itemValue="false" />
							</p:selectOneRadio>

							<h:outputText value="Você fuma? " />
							<p:selectOneRadio id="fuma" value="#{perfilBean.perfil.fuma}">
								<f:selectItem itemLabel="Sim" itemValue="true" />
								<f:selectItem itemLabel="Não" itemValue="false" />
							</p:selectOneRadio>

							<h:outputText value="Qual o seu gosto musical: " />
							<p:selectOneMenu value="#{perfilBean.perfil.gostoMusical}">
								<f:selectItem itemLabel="--Selecione--" itemValue="" />
								<f:selectItem itemLabel="Forró" itemValue="Forro" />
								<f:selectItem itemLabel="Rock" itemValue="Rock" />
								<f:selectItem itemLabel="Reggae" itemValue="Reggae" />
								<f:selectItem itemLabel="Eletrónico" itemValue="Eletrónico" />
								<f:selectItem itemLabel="Axé" itemValue="Axe" />
								<f:selectItem itemLabel="Sertanejo" itemValue="Sertanejo" />
								<f:selectItem itemLabel="Pagode" itemValue="Pagode" />
								<f:selectItem itemLabel="MPB" itemValue="MPB" />
								<f:selectItem itemLabel="Blues" itemValue="Blues" />
								<f:selectItem itemLabel="Jazz" itemValue="Jazz" />
								<f:selectItem itemLabel="Funk" itemValue="Funk" />
								<f:selectItem itemLabel="Pop" itemValue="Pop" />
								<f:selectItem itemLabel="Eclético" itemValue="Eclético" />
							</p:selectOneMenu>

							<h:outputText value="Relacionamento: " />
							<p:selectOneMenu value="#{perfilBean.perfil.relacionamento}">
								<f:selectItem itemLabel="--Selecione--" itemValue="" />
								<f:selectItem itemLabel="Solteiro" itemValue="Solteiro" />
								<f:selectItem itemLabel="Enrolado" itemValue="Enrrolado" />
								<f:selectItem itemLabel="Namorando" itemValue="Namorando" />
								<f:selectItem itemLabel="Casado" itemValue="Casado" />
							</p:selectOneMenu>

							<h:outputText value="Qual é sua religião? " />
							<p:selectOneMenu value="#{perfilBean.perfil.religiao}">
								<f:selectItem itemLabel="--Selecione--" itemValue="" />
								<f:selectItem itemLabel="Católico" itemValue="Catolica" />
								<f:selectItem itemLabel="Protestante" itemValue="Protestante" />
								<f:selectItem itemLabel="Adventista" itemValue="Adventista" />
								<f:selectItem itemLabel="Ateu" itemValue="Ateu" />
								<f:selectItem itemLabel="Espírita" itemValue="Espírita" />
								<f:selectItem itemLabel="Outro" itemValue="Outro" />
							</p:selectOneMenu>

							<p:commandButton value="cancelar" type="submit"
								action="#{perfilBean.cancelar}" ajax="false" />
							<p:commandButton value="Salvar" type="submit"
								action="#{perfilBean.atualizar}" ajax="false" />

						</h:panelGrid>
					</p:panel>
				</h:form>
			</div>
			<div id="direita" align="center">
				
			</div>
		</div>
		<div id="both" align="center"></div>
		<ui:include src="/template/rodape.xhtml"/>
	</div>
</h:body>
</html>